package com.bd.scm.dao.mapper.enclosure;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bd.scm.domain.models.enclosure.BdEnclosure;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 附件表 Mapper 接口
 * </p>
 *
 * @author Mason
 * @since 2020-01-04
 */
public interface BdEnclosureMapper extends BaseMapper<BdEnclosure> {
    /**
     * 插入附件表.
     *
     * @param list
     */
    void saveEnclosure(@Param("list") List<BdEnclosure> list);

    /**
     * 根据单号查询附件
     * @param orderId
     * @return
     */
    List<BdEnclosure> findEnclosureList(String orderId);
}
